package com.hpeng.daily.dao.impl;

import org.springframework.stereotype.Component;
import com.hpeng.daily.dao.AssetCardTwoDao;
import com.hpeng.sys.model.AssetCard;
import com.hpeng.sys.model.AssetCardTwo;
import com.hpeng.util.GenericDaoImpl;
import com.hpeng.util.Pagination;
@Component("assetCardTwoDao")
public class AssetCardTwoDaoImpl extends GenericDaoImpl<AssetCardTwo, String> implements AssetCardTwoDao {

	public Pagination<AssetCardTwo> getPagination(int pageNumber, String[] hql,
			String order) {
		Pagination<AssetCardTwo> pagination = null;
	    StringBuffer sb = new StringBuffer();
		try {
			for (String str : hql) {
				sb.append(str);
			}
			pagination = this.getPagination( sb.toString() + order,null, pageNumber);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return pagination;
	}

}
